package com.piece.core.mongo.annotation;

import com.piece.core.mongo.enums.MongoType;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * mongo查询条件定义
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MongoQuery {

    /**
     * 查询条件
     */
    MongoType type() default MongoType.EQUALS;

    /**
     * 查询属性
     */
    String attribute() default "";
}